<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>axios</title>
  <script src="../js/axios.js"></script>
  <script src="../js/qs.js"></script>
  <script>
    let qs = Qs
    let url = '/category/findAll'
    // 实例化
    let instance = axios.create({
      baseURL: 'http://203.195.246.58:5588',
      method: 'POST'
    })
    instance.get('/category/findAll')
    // axios.get(url,{
    //   baseURL:'http://203.195.246.58:5588',
    //   params: { id:1 },
    //   timeout: 5000
    // })
    // axios.delete(url,{ params: { id:2 } })
    // axios.post(url,{name:'zhangsan',age:12},{
    //   headers: {
    //     'Authorization': '123123123'
    //   }
    // })
    // axios.put(url,{name:'zhangsan',age:12})
  </script>
</head>
<body>
  
</body>
</html>